import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/in_order_page_detail_child_entity.g.dart';
import 'dart:convert';

import 'package:library_base/entities/in_order_page_goods_details_entity.dart';

@JsonSerializable()
class InOrderPageDetailChildEntity{

  late String goodsCode;
  late String goodsName;
  late String unit;
  late bool singleEntry;
  late double purchaseCount;
  late double purchaseWeight;
  late double stockInCount;
  late double stockInWeight;
  String? locationId;
  String? locationName;
  String? differenceReason;
  late List<InOrderPageGoodsDetailsEntity> goodsDetails;

  InOrderPageDetailChildEntity();

  factory InOrderPageDetailChildEntity.fromJson(Map<String, dynamic> json) => $InOrderPageDetailChildEntityFromJson(json);

  Map<String, dynamic> toJson() => $InOrderPageDetailChildEntityToJson(this);

  @override
  String toString() => json.encode(this);

}
